package com.xiyu.service.enums.elder.register;

import lombok.AllArgsConstructor;
import lombok.Getter;
import java.util.Arrays;
import com.xiyu.service.enums.common.IntArrayValuable;

/**
* 退住登记类型
*/
@Getter
@AllArgsConstructor
public enum ElderCheckOutTypeEnum implements IntArrayValuable {

    /**
    * 出院
    */
    DISCHARGE(1, "出院"),
    /**
    * 转院
    */
    TRANSFER(2, "转院"),
    /**
    * 死亡
    */
    DEATH(3, "死亡");

    private final Integer value;

    private final String label;

    public static final int[] VALUES = Arrays.stream(values()).mapToInt(ElderCheckOutTypeEnum::getValue).toArray();

    @Override
    public int[] getValues() { return VALUES;}

    public static final String[] LABELS = Arrays.stream(values()).map(ElderCheckOutTypeEnum::getLabel).toArray(String[]::new);

    @Override
    public String[] getLabels() { return LABELS; }

}
